package org.example.designPattern.zerenlian.zerenjianzao;

import org.example.designPattern.zerenlian.good.Member;

public class ValidateHandler extends Handler {
    @Override
    public void doHandler(Member member) {
        if (member.getLoginName().isEmpty() || member.getLoginPass().isEmpty()) {
            System.out.println("用户名或密码为空");
            return;
        }
        System.out.println("用户名与密码不为空，可进行下一步");
        chain.doHandler(member);
    }
}
